import { createI18n } from "vue-i18n";

import localZhch from './languages/zh-cn'
import localEn from './languages/en'


import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import en from "element-plus/dist/locale/en.mjs"

const i18n = createI18n({
    legacy:false,
    locale:'zh-cn',
    fallbackLocale:'zh-cn',
    messages:{
        'zh-cn':localZhch,
        'en':localEn,
    }
})

console.log(i18n);

export const elementLocales = {
    'zh-cn':zhCn,
    'en':en
}

export default i18n
